package com.monkey.luffer.design.pattern.factory;

/**
 * @Author dengkaibing
 * @Description 加法类获取工厂
 * @Date 2022/4/4 14:46
 **/
public class OperationAdd extends Operation {

    public OperationAdd(double A,double B) {
       setNumberA( A);
       setNumberB(B);
    }

    @Override
    public double getResult() {
        return getNumberA() + getNumberB();
    }
}
